def writer_a(file_path, content):
    file = open(file_path, 'a', newline='\n')
    file.write(content)
    print(file)
    file.close()


def writer_a_list(file_path, lst):
    file = open(file_path, 'a')
    file.writelines(lst)
    file.write('\n')
    file.close()


if __name__ == '__main__':
    writer_a("b.txt", "你好")
    writer_a('b.txt', 'where are you from ? i am from zhengzhou')
    writer_a_list("c.txt", ["let's\t", "go\t", "home.\t", 'nothing'])
